package com.qin.mapper;

import com.alibaba.fastjson.JSONObject;
import com.qin.entity.Component;
import com.qin.entity.SubComponent;
import com.qin.entity.TestCase;
import com.qin.entity.TestCaseOrder;
import java.util.List;

public interface TestCaseMapper {

    //----------案例基本信息----------
    //查询案例信息
    public List<TestCase> queryTestCases(TestCase testCase);
    //插入案例信息
    public boolean insertTestCase(TestCase testCase);
    //删除案例信息
    public boolean deleteTestCase(TestCase testCase);
    //更新案例信息
    public boolean updateTestCase(TestCase testCase);

    //查询公共函数下案例的最大序号
    public int queryMaxOrderByFunctionId(String function_id);
    //案例序号重排
    public boolean reorderTestCases(List<TestCaseOrder> testCaseOrderList);

    //通过testcase_id查询案例信息
    public TestCase queryTestCaseByTestCaseId(TestCase testCase);

    //----------案例详细信息----------
    //查询案例详细信息
    public List<Component> queryTestCaseDetail(Component component);

    //删除案例详细信息_Component
    public boolean deleteTestCaseDetail_Component(List<Component> componentList);
    //删除案例详细信息_SubComponent
    public boolean deleteTestCaseDetail_SubComponent(List<Component> componentList);

    //保存案例详细信息_Component
    public boolean insertTestCaseDetail_Component(Component component);
    //保存案例详细信息_SubComponent
    public boolean insertTestCaseDetail_SubComponent(List<SubComponent> subComponentList);
}
